package server

type DealInfo struct {
	Vul    string
	Dealer string
	Number int
}

var dealers = [...]string{"n", "e", "s", "w"}
var vuls = [...]string{"g", "n", "e", "b"}

func GetDealInfo(number int) DealInfo {
	base_number := (number - 1) % 4
	vul_number := (number - 1) / 4
	return DealInfo{
		Number: number,
		Dealer: dealers[base_number],
		Vul:    vuls[(base_number+vul_number)%4],
	}
}
